@a: 100rem;

/* 样式重置 */
* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -webkit-tap-highlight-color: transparent
}

html, body {
  height: 100%;
  position: relative;
  margin: 0;
  overflow: hidden;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #000018;
  font-family: '微软雅黑';
}

a {
  text-decoration: none;
}

/* 框架 */
#container {
  width: 100%;
  height: 100%;
  position: fixed;
  overflow: hidden;
}

// 开始游戏
#startgame {
  position: absolute;
  right: 20px;
  bottom: 20px;
}

/* 游戏区 */
#gamepanel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* 绘制区 canvas */
#stage {
  background-color: #000;
}

/* 分数 */
.score-wrap {
  background: url(../img/scorebg.png) no-repeat;
  background-size: 100%;
  color: #FFF;
  /*display: none;*/
  font-family: "Helvetica", "Microsoft YaHei", sans-serif;
  font-style: italic;
  font-size: 34/@a;
  font-weight: 700;
  height: 64/@a;
  letter-spacing: 4/@a;
  padding: 14/@a 20/@a;
  position: absolute;
  right: 40/@a;
  text-align: right;
  text-shadow: 1.5px 0 0 #613209, -1.5px 0 0 #613209, 0 1px 0 #613209,0 -1.5px 0 #613209, 1px 1px 0 #613209, -1px 1px 0 #613209,1px -1px 0 #613209,-1px -1px 0 #613209;
  top: 20/@a;
  width: 210/@a;
  z-index: 1005;
  /* 心 */
  div {
    background: url(../img/heart.png) no-repeat;
    background-size: 100%;
    height: 52/@a;
    left: 4/@a;
    position: absolute;
    top: 4/@a;
    width: 52/@a;
    z-index: 1009
  }
  /* 数值 */
  span {
    font-size: 34/@a;
  }
}

/* 心动画 */
div.hearthot {
  -webkit-animation: fire .2s linear;
  -o-animation: fire .2s linear;
  animation: fire .2s linear
}

@-webkit-keyframes fire {
  0% {
    opacity: 1;
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1)
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(3.0);
    -moz-transform: scale(3.0);
    -ms-transform: scale(3.0);
    -o-transform: scale(3.0);
    transform: scale(3.0)
  }
}

@keyframes fire {
  0% {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1)
  }

  100% {
    -webkit-transform: scale(1.0);
    -moz-transform: scale(1.0);
    -ms-transform: scale(1.0);
    -o-transform: scale(1.0);
    transform: scale(1.0)
  }
}

/* 背景 */
#guidePanel {
  background: rgba(0, 0, 0, 0.6) url(../img/startbg.png) center 50% no-repeat;
  background-size: 438/@a 738/@a;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10000
}

/* GameOver */
#gameoverPanel {
  background: rgba(0, 0, 0, 0.8) url(../img/gameover.png) center 30% no-repeat;
  background-size: 460/@a 520/@a;
  top: 0
}

#gameoverPanel, #resultPanel {
  display: none;
  height: 100%;
  position: absolute;
  width: 100%;
  z-index: 10000
}

/* 重玩背景 */
#resultPanel {
  background: url(../img/endpage.jpg) no-repeat center/cover;
}

#resultPanel, #resultPanel .weixin-share {
  left: 0;
  top: 0
}

#resultPanel .weixin-share {
  background: rgba(0, 0, 0, .8);
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 100
}

.weixin-share iframe {
  width: 100%;
  height: 100%;
}

/* 重玩按钮 */
/*#resultPanel .replay {
  background: url(../img/replay.png) 0 0 no-repeat;
  height: 72/@a;
  line-height: 72/@a;
  left: 32/@a;
  overflow: hidden;
  position: absolute;
  top: 22/@a;
  width: 192/@a;
  z-index: 10;
  color: #E44324;
  text-align: right;
  padding-right: 12/@a;
  font-weight: 700;
  font-size: 24/@a;
}*/

#resultPanel .panel, #scoreBoard .score-result {
  display: none;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%
}

#fenghao {
  height: 136/@a;
  margin-top: 180/@a;
}

/* 评价内容 */
#scorecontent {
  font-size: 32/@a;
  font-weight: 700;
  color: #666;
  text-align: center;
  line-height: 1.8em;
  margin-top: 10/@a;
  //background: #11bf9a;
}

.lighttext {
  color: #F6DE0A;
}

/* 给力 */
.geili {
  background: url(../img/geili.png) center no-repeat;
}

/* 饮恨 */
.yinhen {
  background: url(../img/yinhen.png) center no-repeat;
}

/* 抽奖 */
.textc {
  text-align: center;
}

/* 按钮 */
.btn1, .btn2 {
  display: inline-block;
  width: 392/@a;
  height: 108/@a;
  line-height: 108/@a;
  color: #FFF;
  font-size: 40/@a;
  border-radius: 10/@a;
  text-align: center;
}

.btn1 {
  margin-top: 44/@a;
  background-color: #E8722C;
}

.btn2 {
  margin-top: 24/@a;
  border: 1px solid #6A6B6D;
  background: white;
  color: #666;
}

.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0,0,0,.5);
  z-index: 99999;
  display: none;
  .inner {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    margin: auto;
    .box {
      width: 500/@a;
      padding: 40/@a 20/@a;
      transform: translate(-50%, -50%);
      background: #f0f0f0;
      border-radius: 10/@a;
      text-align: center;
    }
  }
  p{
    font-size: 32/@a;
    line-height: 48/@a;
    color: #666;
  }
  a{
    display: block;
    margin: 30/@a auto 0;
    width: 300/@a;
    font-size: 32/@a;
    border-radius: 10/@a;
    line-height: 62/@a;
    color: white;
    background: #17aa80;
  }
}

.mask{
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1000000;
  display: none;
}
